﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Core.Tools.Config
{
    /// <summary>
    /// 配置参数管理接口
    /// </summary>
    public interface IConfigManager
    {
        /// <summary>
        /// 读取本地JSON配置
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        T Read<T>(ValueType key);

        /// <summary>
        /// 写入本地JSON配置
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <exception cref="NotImplementedException"></exception>
        void Write(ValueType key, object value);
    }
}
